﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SimpleFactoryPattern.ProductFactory
{
    /// <summary>
    /// 抽象产品角色
    abstract class Product 
    {
        /// <summary>
        /// 所有产品类的公共业务方法
        /// </summary>
        public void MethodSame() 
        {
            Console.WriteLine("base MethodSame");
        }

        /// <summary>
        /// 声明抽象业务方法
        /// </summary>
        public abstract void MethodDiff();
    }
    
}
